package com.ruoyi.contract.mapper;


import com.ruoyi.contract.domain.Cproject;
import com.ruoyi.contract.model.Query1;
import com.ruoyi.experiment.domain.Experiment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ContractMapper {

    List<Cproject> selectAll(Query1 query1);

    void insertContract(Cproject cproject);

    Cproject selectById(Long id);

    int updateContract(Cproject cproject);

    int removeOne(Long id);

    int removeZFByPId(Long id);

    int removeLCBByPId(Long id);

    int checkContractCode(String code);

    List<Experiment> selectExperimentPrice(Long pid);

    int updateContractPrice(Cproject cproject);
}
